//package com.ford.trade.processor;
//
//import com.ford.trade.service.BeiDan500PeilvService;
//import com.ford.trade.service.Game500Service;
//import lombok.Data;
//import org.jsoup.nodes.Document;
//import org.jsoup.nodes.Element;
//import org.springframework.stereotype.Component;
//import us.codecraft.webmagic.Page;
//import us.codecraft.webmagic.Site;
//import us.codecraft.webmagic.processor.PageProcessor;
//
///**
// * @author: ford
// * @date: 2022/4/23 13:41
// */
//@Data
//@Component
//public class BeiDan500PeilvProcessor implements PageProcessor {
//
//    private BeiDan500PeilvService beiDan500PeilvService;
//    private Game500Service gameService;
//
//    private String type;
//    private String date;
//    private String cookie;
//
//    @Override
//    public void process(Page page) {
//        Document document = page.getHtml().getDocument();
//        String url = page.getUrl().get();
//        Long indexId = Long.valueOf(url.substring(url.lastIndexOf("-") + 1, url.lastIndexOf(".")));
//        Element winner = document.getElementById("836");
//        Element winner = document.getElementById("836");
//        Element winner = document.getElementById("836");
//    }
//
//    private Site site = Site.me()
//            .setCharset("gb2312")
//            .setUserAgent("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36")
//            .addCookie("cookie", cookie)
//            .setTimeOut(1000000)
//            .setRetrySleepTime(10000)
//            .setRetryTimes(3);
//
//    @Override
//    public Site getSite() {
//        return site;
//    }
//
//}
